<?php get_instance()->view('common/header');?>
<body>
<div class="jianbbg p15_0">
    <div class="p3">
        <p class="mb5">账户余额（元）</p>
        <div class="box clear">
            <h1 class="f30 mt7 lh10 fb dk">
                <?php echo $this->userBalance?>
                <a href="<?php echo getUrl('money/bank')?>" class="fr weui-btn weui-btn_mini darkborbtn borbtn mt10">我的银行卡</a>
            </h1>
            <h6></h6>
        </div>
    </div>
</div>
<div class="weui-cells m0a">
    <a class="weui-cell weui-cell_access afterbor100" href="<?php echo getUrl('money/balanceLog')?>">
        <div class="weui-cell__hd"><img class="heightimg mr5" src="<?php echo $this->staticUrl?>img/png/pic57.png" alt=""></div>
        <div class="weui-cell__bd">
            <p>今日明细</p>
        </div>
        <div class="weui-cell__ft"></div>
    </a>
</div>
<?php if (!empty($list)):?>
    <div class="tablist bor_tt mt7 pb50 list">
        <?php foreach ($list as $k => $v):?>
            <div class="p3 bor_bb">
                <div class="listitem heng vCenter p5_0">
                    <div class="">
                        <?php echo $v['title'].'('.$v['status_desc'].')'?>
                        <p class="f08 cor9"><?php echo $v['addtime']?></p>
                    </div>
                    <div class="">
                        <span class="dk tr"><?php echo $v['amount']?></span>
                    </div>
                </div>
            </div>
        <?php endforeach;?>
    </div>
<?php else:?>
    <div class="statebox chuizhi jdjz" style="flex: 1;height: 50%;">
        <img class="stateimgda mb5" src="<?php echo $this->staticUrl?>img/default/4.png" alt="">
        <span class="f09 cor9 tc mb20">暂无余额记录</span>
    </div>
<?php endif;?>
<div class="weui-loadmore" style="display: none">
    <div class="load">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">正在加载</span>
    </div>
    <span class="noC" style="display: none">没有更多内容了~</span>
</div>
<div class="orderfixed heng" style="padding:1em 3%;">
    <a href="<?php echo getUrl('money/recharge')?>" class="posbotbtn wp48 tc f09 mr5">充值</a>
    <a href="<?php echo $pay_pwd ? getUrl('money/withdrawals') : getUrl('user/setPayPasswd')?>"
       class="posbotbtn wp48 tc lanposbotbtn f09">提现</a>
</div>
</body>
<script src="<?php echo $this->staticUrl?>js/jquery-weui.js"></script>
<script src="<?php echo $this->staticUrl?>js/base.js"></script>
<script type="text/javascript">
    $(function () {

    })
</script>
</html>